package com.snsoft.bean;

import org.hibernate.validator.constraints.NotBlank;

import com.snsoft.util.Constants;

/**
 * 
 * @author 慎伟康
 * 
 * @date 2017年12月22日 下午9:09:50
 * 
 * @Description TODO
 *    表单对象，可利用注解进行校验
 */
public class UpdatePasswordForm {
	
	@NotBlank(message=Constants.MSG_CHECK_OLDPASSWORD)
	private String oldPassWord;
	
	@NotBlank(message=Constants.MSG_CHECK_NEWPASSWORD1)
	private String newPassWord1;
	
	@NotBlank(message=Constants.MSG_CHECK_NEWPASSWORD2)
	private String newPassWord2;
	
	public String getOldPassWord() {
		return oldPassWord;
	}
	public void setOldPassWord(String oldPassWord) {
		this.oldPassWord = oldPassWord;
	}
	
	public String getNewPassWord1() {
		return newPassWord1;
	}
	public void setNewPassWord1(String newPassWord1) {
		this.newPassWord1 = newPassWord1;
	}
	
	public String getNewPassWord2() {
		return newPassWord2;
	}
	public void setNewPassWord2(String newPassWord2) {
		this.newPassWord2 = newPassWord2;
	}
	
	@Override
	public String toString() {
		return "UpdatePasswordForm [oldPassWord=" + oldPassWord
				+ ", newPassWord1=" + newPassWord1 + ", newPassWord2="
				+ newPassWord2 + "]";
	}
}
